Skip to content

Conversation

Copy link

Copilot AI commented Sep 12, 2025

This PR modernizes the azure.yaml configuration to align with Azure Developer CLI (azd) version 1.17.0+ best practices by removing the explicit pipeline: variables section.

Changes Made

Removed Pipeline Variables Section

The entire pipeline: block containing 25+ variable declarations has been removed, including:

  • Azure service configurations (AZURE_OPENAI_*, AZURE_COSMOS_*, etc.)
  • Container app settings (SERVICE_ACA_*)
  • Environment variables (AZURE_ENV_NAME, AZURE_LOCATION, etc.)
  • Secrets (BING_SEARCH_KEY)

Added Version Requirements

Added a requiredVersions section that enforces azd >= 1.17.0:

requiredVersions:
  azd: ">= 1.17.0"

Updated Template Version

Bumped the metadata template version from 0.0.1 to 0.0.2 to indicate this configuration change.

Rationale

As of azd version 1.17.0, the pipeline: variables: section is no longer needed. The Azure Developer CLI now auto-detects required variables from main.parameters.json, which already contains all the necessary parameter mappings like:

{
  "environmentName": { "value": "${AZURE_ENV_NAME}" },
  "location": { "value": "${AZURE_LOCATION}" },
  "openAiApiVersion": { "value": "${AZURE_OPENAI_API_VERSION=2023-07-01-preview}" }
}

Benefits

  • Simplified Configuration: Eliminates 30 lines of redundant variable declarations
  • Reduced Maintenance: No need to keep pipeline variables in sync with parameters
  • Modern Best Practices: Aligns with current azd recommendations
  • Automatic Detection: Variables are now inferred automatically by azd

The repository's CI/CD workflows will continue to work as expected, as they already use the GitHub Actions setup that installs azd and the variables are properly defined in the parameters file.

Fixes #[issue-number]

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: bicep build main.bicep (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Fixes #263


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: cassiebreviu <46505951+cassiebreviu@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove the pipeline: variables section from azure.yaml Remove pipeline variables section from azure.yaml for azd 1.17.0+ compatibility Sep 12, 2025
Copilot AI requested a review from cassiebreviu September 12, 2025 17:17
Copilot finished work on behalf of cassiebreviu September 12, 2025 17:17
@cassiebreviu cassiebreviu requested a review from nitya September 12, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the pipeline: variables section from azure.yaml

2 participants